package com.moneywelcome.goldfacade;

import com.moneywelcome.goldfacade.dto.GoldTrendDto;
import com.moneywelcome.goldfacade.dto.TrendDto;
import com.moneywelcome.goldfacade.vo.GoldTrendVo;
import com.moneywelcome.goldfacade.vo.TrendVo;
import com.moneywelcome.results.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        contextId="goldOperationApi",//服务名字
        value = "gold" // 区分不同client
)
public interface GoldOperationApi {
    @PostMapping("/saveTrend")
    Result<GoldTrendDto> saveTrend(@RequestBody GoldTrendVo goldTrendVo);
}
